package com.kool.kadmin.system.util;


import com.kool.kadmin.system.api.vo.UserVo;
import com.kool.kadmin.system.bean.SysUserDo;

/**
 * @author luyu
 */
public class UserTransfer {
    /**
     *
     * @param userDo
     * @return
     */
    public static UserVo userDoToUserVo(SysUserDo userDo) {
        UserVo userVo = new UserVo();
        userVo.setId(userDo.getId())
                .setUserName(userDo.getUserName())
                .setPhone(userDo.getPhone())
                .setEmail(userDo.getEmail())
                .setAvatar(userDo.getAvatar())
                .setErrorTimes(userDo.getErrorTimes())
                .setLoginName(userDo.getLoginName())
                .setState(userDo.getState())
                .setCreatedTime(userDo.getCreatedTime())
                .setSvnUser(userDo.getSvnUser());
        return userVo;
    }
}
